#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <assert.h>
int my_strcmp(const char *src,const char *dst)
{
	assert(src && dst);
	while (*src == *dst)
	{
		if (*src == '\0')
		{
			return 0;
		}
		src++;
		dst++;
		
	}
	if (*src > *dst)
		return 1;
	else
		return -1;
}

int main()
{
	char arr1[] = "abc ";
	char arr2[] = "ab";
	int ret = 0;
	ret=my_strcmp(arr1, arr2);
	printf("%d\n", ret);
	return 0;
}